#include<stdio.h>
int missingNumber(int* nums, int numsSize)
{
    for (int i = 0; i < numsSize-1; i++)
    {
        for(int j = i+1;j<numsSize-2;j++)
        if (nums[j] > nums[j+1])
        {
            int temp = nums[j];
            nums[j] = nums[j+1];
            nums[j+1] = temp;
        }
    }
    for (int i = 0; i < numsSize-1; i++)
    {
        printf("%d\n", nums[i]);
    }
}

int main()
{
    int nums[] = {9,6,4,2,3,5,7,0,1 };
    int numsSize = 9;
    missingNumber(nums, numsSize);
    return 0;
}